import instance from '@/axios'

export const getUsers = ((obj) => {
    return instance({
        data: obj,
        method:'post',
        url:'/getUsers'
    })
})

export const addUsers = ((obj) => {
    return instance({
        data: obj,
        method:'post',
        url:'/addUsers'
    })
})

export const updateUsers = ((obj) => {
    return instance({
        data: obj,
        method:'post',
        url:'/updateUsers'
    })
})

export const delUsers = ((obj) => {
    return instance({
        data: obj,
        method:'post',
        url:'/delUsers'
    })
})

export const userLogin = ((obj) => {
    return instance({
        data: obj,
        method:'post',
        url:'/userLogin'
    })
})